package iO.J20240415;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: nn
 * Date: 2025-05-06
 * Time: 下午5:32
 */
public class Demo5 {
    public static void main(String[] args) {
        File f1 = new File("./text.txt");
        File f2 = new File("./text2.txt");

        f1.renameTo(f2);//进⾏⽂件改名，也可以视为我们平时的剪切、粘贴操作
    }
}
